<template>
    <div class="gcbox">
        <h3>孙子组件</h3>
        <div>{{akey}}</div>
        <grand-son-son></grand-son-son>
    </div>
</template>

<script>
import GrandSonSon from '@/components/GrandSonSon.vue'
export default {
    components:{
        GrandSonSon
    },
    inject:['akey']
}
</script>

<style>
    .gcbox{
        width: 300px;
        height: 200px;
        background-color: yellow;
    }
</style>